<?php

$records = $this->records;

?>
<a href="<?php echo $this->baseUrl; ?>/admin/module">Lists</a>
<h4><?php echo strtoupper($records['name']); ?> Module</h4>
<?php
if (isset($records['resources']) && $records['resources']) {
	foreach ($records['resources'] as $resource) {
?>
<b><?php echo $resource['name']; ?></b>
<table cellpadding="2" cellspacing="2">
	<?php
	foreach ($resource['privileges'] as $privilege) {
	?>
	<tr>		
		<td><?php echo $privilege['name']; ?></td>
	</tr>
	<?php
	}
	?>
</table><br />
<?php
	}
} else {
	echo "No defined resources!";
}
?>